package com.haogu.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("tb_crm_task")
public class Task {
    @TableId(type= IdType.AUTO)
    private Integer id;   //任务编号
    private Integer ownerUserId;   //负责人
    private String aboutUsers;   //任务相关人
    private String subject;    //主题
    private Date dueDate;      //任务截止日期
    private String status;    //状态
    private String priority;   //优先级
    private String sendEmail; //是否发送邮件通知
    private String description;  //描述
    private Integer creatorUserId;   //创建人
    @TableField(fill= FieldFill.INSERT)
    private Date createDate;   //创建时间
    @TableField(fill=FieldFill.INSERT_UPDATE)
    private Date updateDate;  //修改时间
    private Integer isclose;  //是否关闭
    @TableLogic
    private Integer deleteStatus;   //是否删除
    private Integer deleteUserId;   //删除人
    private Date deleteTime;         //删除时间
}
